<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // let s = Symbol()
        // console.log(s)
        // let a = Symbol()
        // console.log(s === a)
        // let s = Symbol("key")
        // let a = Symbol('key1')
        // console.log(s, a)

        // let obj = {
        //     name: "卡莎",
        //     [Symbol("age")]: '100kg'
        // }
        // console.log(obj)
        // console.log(obj.name)
        // console.log(obj[Symbol("age")])

        // let res = Object.getOwnPropertySymbols(obj)
        // console.log(res)

        let cate = {
            person: '人类',
            animal: '动物'
        }
        function getCate(type) {
            if(type===cate.person) {
                console.log('人类')
            } else {
                console.log('动物')
            }
        }
        getCate(cate.person)
        getCate(cate.animal)



    </script>
</body>
</html>